home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog Special Edition 10
/
FreelogHS10.iso
/
Apprendre
/
Trainers
/
id86.swf
/
scripts
/
DefineButton2_67
/
BUTTONCONDACTION on(keyPress Space).as
Wrap
Text File
|
2002-02-16
|
1KB
|
74 lines
on(keyPress "<Space>"){
if(IncorrectDisplay == false)
{
if(Instrument == 2)
{
Valve1 = false;
Valve2 = false;
Valve3 = false;
Valve4 = false;
if(Key.isDown(37))
{
Valve3 = true;
}
if(Key.isDown(40))
{
Valve2 = true;
}
if(Key.isDown(39))
{
Valve1 = true;
}
if(Key.isDown(67))
{
Valve1 = true;
}
if(Key.isDown(88))
{
Valve2 = true;
}
if(Key.isDown(90))
{
Valve3 = true;
}
gotoAndStop(20);
}
else if(Instrument != 3)
{
Valve1 = false;
Valve2 = false;
Valve3 = false;
Valve4 = false;
if(Key.isDown(37))
{
Valve1 = true;
}
if(Key.isDown(40))
{
Valve2 = true;
}
if(Key.isDown(39))
{
Valve3 = true;
}
if(Key.isDown(67))
{
Valve1 = true;
}
if(Key.isDown(88))
{
Valve2 = true;
}
if(Key.isDown(90))
{
Valve3 = true;
}
if(Key.isDown(96))
{
Valve4 = true;
}
gotoAndStop(20);
}
}
}